
<template id="c1">
    <div>
        <div class="title" @click="open=!open">
            <div class="title">
                <span>{{title}}</span>
                <i class="iconfont icon-jiankuohaoxiyou" :class="{'rotate':open==true}"></i>
            </div>
            <!-- <i class="iconfont icon-jiankuohaoxiyou" :class="{'rotate':index==select}"></i> -->
        </div>
        <div v-show="open">
            <slot></slot>
        </div>
    </div>
</template>

<script>
export default {
    name: 'extend',
    data() {
        return {
            open: false
        }
    },
    props:['title']
}
</script>
